home *** CD-ROM | disk | FTP | other *** search
- Path: mindlink.bc.ca!a10599
- From: Dave_Thomas@mindlink.bc.ca (Dave Thomas)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Removing Processes
- Date: Fri, 15 Mar 96 18:50:29 -0800
- Organization: MIND LINK! - British Columbia, Canada
- Distribution: world
- Message-ID: <84215-826944629@mindlink.bc.ca>
- NNTP-Posting-Host: mindlink.net
-
- Hi! I'm writing a program which spawns a sub-process to do another task
- while the main program handles input. The problem I'm finding is that the
- sub-process doesn't exit reliably. Sometimes it appears to exit, and
- sometimes not. Currently, I am allowing the subprocess to run to the end,
- when (I assume) it does an "RTS" and returns to the OS for removal. Should
- I be using "RemTask()" to remove the sub-process? And, if so, should it be
- called from the sub-process, or from the main program? BTW, the
- sub-process is a procedure in the program, and uses some global variables
- and string constants.
-
- Next question: I am using a process because I am writing a NNTP news reader
- program, and I want the sub-process to do the communication across the 'net
- (using AmiTCP). It's not clear to me that a task would be sufficient to do
- this. Would it be?
-
- Final question: I'm using SASC 6.55 and find that when I write a smakefile
- and use smake to compile, it trashes some of my source files. I've stopped
- using smake, but it's a pain when I need to recompile everything. I've
- also had this problem with older versions. Has anyone else noticed this?
-
- Thanks in advance!
-
- Dave
-